package com.qww.supplement.singleton.type4;

// 懒汉式单例 惊天内部类
public class Singleton {

    private  Singleton() {}

    private static class SingletonHolder {
        private static final Singleton instance = new Singleton();
    }

    public static Singleton getInstance() {
        return SingletonHolder.instance;
    }
}
